DumpMT
Dumps MethodTable information.
Syntax
!DumpMT [-MD] <addr>
Parameters
-MD
Show all methods in method table
<addr>
Method TableMethod table to display information about. Can be obtained using
the DumpMD or DumpClass command.
Example
0:003> !DumpMT 3750d8
EEClass : 03651088
Module : 0014fc18
Name: basedebug.MyMain
mdToken: 02000002 (G:\Projects\VC\basedebug\bin\Debug\basedebug.exe)
MethodTable Flags : 80000
Number of IFaces in IFaceMap : 0
Interface Map : 00375130
Slots in VTable : 11
0:003> !DumpMT -md 3750d8
EEClass : 03651088
Module : 0014fc18
Name: basedebug.MyMain
mdToken: 02000002 (G:\Projects\VC\basedebug\bin\Debug\basedebug.exe)
MethodTable Flags : 80000
Number of IFaces in IFaceMap : 0
Interface Map : 00375130
Slots in VTable : 11
--------------------------------------
MethodDesc Table
Entry MethodDesc JIT Name
79bc5f03 79bc5f08 None [DEFAULT] [hasThis] String System.Object.ToString()
79bc5e8b 79bc5e90 None [DEFAULT] [hasThis] Boolean System.Object.Equals(Object)
79bc5ea3 79bc5ea8 None [DEFAULT] [hasThis] I4 System.Object.GetHashCode()
79bc5f43 79bc5f48 None [DEFAULT] [hasThis] Void System.Object.Finalize()
0037506b 00375070 None [DEFAULT] Void basedebug.MyMain.Main(SZArray String)
0037507b 00375080 None [DEFAULT] String basedebug.MyMain.MyFunction()
0037508b 00375090 None [DEFAULT] String basedebug.MyMain.MyFunction2()
0037509b 003750a0 None [DEFAULT] String basedebug.MyMain.MyFunction3()
003750ab 003750b0 None [DEFAULT] String basedebug.MyMain.MyFunction4()
003750bb 003750c0 None [DEFAULT] String basedebug.MyMain.MyFunction5()
003750cb 003750d0 None [DEFAULT] [hasThis] Void basedebug.MyMain..ctor()
Output
EEClass
Class containing the method table. Use the
DumpClass command to get information on the class.
Module
Module containing the method table. Use the
DumpModule command to get information on the module.
Name
Name of the class containing the method table.
mdToken
Meta data token for the method table.
MethodTable Flags
Flags associated with the method table. Bit-masked DWORD.
Number of elements in array
Number of IFaces in IFaceMap
Number of interfaces the class implements.
Interface Map
Pointer to the location of the method tables for the
implemented interfaces. For example, System.String implements
the following interfaces:
System.IComparable
System.ICloneable
System.IConvertible
System.Collections.IEnumerable
0:003> !Name2EE mscorlib.dll System.String
--------------------------------------
MethodTable: 79bc73f8
EEClass: 79bc7740
Name: System.String
0:003> !DumpMT 79bc73f8
EEClass : 79bc7740
Module : 79bb0000
Name: System.String
mdToken: 0200000f (f:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll)
MethodTable Flags : 2000000
Number of elements in array: 2
Number of IFaces in IFaceMap : 4
Interface Map : 79bc7720
Slots in VTable : 189
0:003> dd 79bc7720
79bc7720 79bc6f78 00140000 79bc60e8 00150000
79bc7730 79bc7058 00280000 79bc61c8 00270000
79bc7740 79bc5de4 00bd0039 00040000 79bc70dc
79bc7750 00000000 00000000 ffffffff 00020003
79bc7760 00020000 0000000a 00143f18 79bc73f8
79bc7770 79bc77a4 00102101 03000801 00440fca
79bc7780 10300c68 00000000 0200000f 79bc77e0
79bc7790 00000000 00000000 00000000 00000000
0:003> !DumpMT 79bc6f78
EEClass : 79bc6fbc
Module : 79bb0000
Name: System.IComparable
mdToken: 0200000d (f:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll)
MethodTable Flags : 2080000
Number of IFaces in IFaceMap : 0
Interface Map : 79bc6fa8
Slots in VTable : 1
0:003> !DumpMT 79bc60e8
EEClass : 79bc612c
Module : 79bb0000
Name: System.ICloneable
mdToken: 02000003 (f:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll)
MethodTable Flags : 2080000
Number of IFaces in IFaceMap : 0
Interface Map : 79bc6118
Slots in VTable : 1
0:003> !DumpMT 79bc7058
EEClass : 79bc70dc
Module : 79bb0000
Name: System.IConvertible
mdToken: 0200000e (f:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll)
MethodTable Flags : 2080000
Number of IFaces in IFaceMap : 0
Interface Map : 79bc70c8
Slots in VTable : 17
0:003> !DumpMT 70bc61c8
EEClass : 79bc620c
Module : 79bb0000
Name: System.Collections.IEnumerable
mdToken: 02000004 (f:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll)
MethodTable Flags : 2080000
Number of IFaces in IFaceMap : 0
Interface Map : 79bc61f8
Slots in VTable : 1
Slots in VTable
Number of methods in the method table.
MethodDesc Table
Displays the methods in the method table. It has the
following columns:
Entry
MethodDesc
Method descriptor for the method. Use the DumpMD command on this address to get
more information.
JIT
Type of generated code. Can be JIT, EJIT, PreJIT or None
Name
Method signature